﻿<Window x:Class="BugLister.Dialogs.ViewBugDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{Binding Path=ShortDescription}" Height="305" Width="576" SizeToContent="Height">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Grid.ColumnSpan="2">
            <Label FontWeight="Black">Short Description</Label>
            <TextBlock Text="{Binding Path=ShortDescription}" />
        </StackPanel>
        <StackPanel Grid.ColumnSpan="2" Grid.Row="1">
            <Label FontWeight="Black">Long Description</Label>
            <TextBlock Text="{Binding Path=LongDescription}" />
        </StackPanel>
        <StackPanel Grid.Row="2">
            <Label FontWeight="Black">Importance</Label>
            <TextBlock Text="{Binding Path=Importance}" />
        </StackPanel>
        <StackPanel Grid.Row="2" Grid.Column="1">
            <Label FontWeight="Black">Bug type</Label>
            <TextBlock Text="{Binding Path=Type}" />
        </StackPanel>
        <StackPanel Grid.ColumnSpan="2" Grid.Row="3" Background="{Binding Path=BackgroundBrush}" FlowDirection="RightToLeft">
            <Label Margin="0,0,3,0" Content="{Binding Path=DateAdded}" Foreground="White" />
        </StackPanel>
    </Grid>
</Window>
